package fr.ysa.services.config;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


public class FiltreDto implements Serializable {

	private static final long serialVersionUID = -5953445909020045956L;

	public static enum TYPE {
		STRING, NUMBER, DATE, OBJECT
	}
	
	private String name = "";

	private TYPE type = TYPE.STRING;
	
	private List<ValueFiltreDto> values = new ArrayList<ValueFiltreDto>();
	
	public FiltreDto() {
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<ValueFiltreDto> getValues() {
		return values;
	}

	public void addValue(ValueFiltreDto value) {
		this.values.add(value);
	}

	public TYPE getType() {
		return type;
	}

	public void setType(TYPE type) {
		this.type = type;
	}	
		
}
